<!--#include file="inc/conn2.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>

<body>
<%
If request("modify")="modify" then
	Set rsfor=Server.CreateObject("adodb.recordset")
	SQL="Select * from Infor"
	rsfor.open SQL,conn,1,3
	    call fsomodify_infor(request("logo"),rsfor("logo"))
	    call fsomodify_infor(request("weixin"),rsfor("weixin"))
		rsfor("logo")=request("logo")
		rsfor("weixin")=request("weixin")
	
		rsfor("Web_Name")=request("Web_Name")
		rsfor("Web_Add")=request("Web_Add")
		rsfor("Web_Name_en")=request("Web_Name_en")
		rsfor("Web_Name_fa")=request("Web_Name_fa")
		rsfor("Web_Add_en")=request("Web_Add_en")
		rsfor("Web_Add_fa")=request("Web_Add_fa")
		rsfor("Web_Phone")=request("Web_Phone")
		rsfor("Web_Fax")=request("Web_Fax")
		rsfor("Web_LeaguePhone")=request("Web_LeaguePhone")
		rsfor("Web_Serverphone")=request("Web_Serverphone")
		rsfor("Web_QQ")=replace(Request("Web_QQ"),"，",",")
		rsfor("Web_MSN")=Request("Web_MSN")
		rsfor("Web_Skype")=Request("Web_Skype")
		if request("Web_http")<>"" and left(request("Web_http"),7)<>"http://" then
		rsfor("Web_http")="http://"&request("Web_http")
		else
		rsfor("Web_http")=request("Web_http")
		end if
		rsfor("Web_Mail")=request("Web_Mail")
		rsfor("Web_Mobilephone")=request("Web_Mobilephone")
		rsfor("zongshu")=request("zongshu")
		rsfor("Web_Lxr")=Request("Web_Lxr")
		rsfor("Web_Lxr_en")=Request("Web_Lxr_en")
		rsfor("Web_Lxr_fa")=Request("Web_Lxr_fa")
		rsfor("Web_Wenti")=Request("Web_Wenti")
		rsfor("Web_Daan")=Request("Web_Daan")
		rsfor("Web_description")=replace(replace(replace(Request("Web_description"),"'",""),"，",","),"""","")
		rsfor("Web_description_en")=replace(replace(replace(Request("Web_description_en"),"'",""),"，",","),"""","")
		rsfor("Web_description_fa")=replace(replace(replace(Request("Web_description_fa"),"'",""),"，",","),"""","")
		rsfor("Web_keywords")=replace(replace(replace(Request("Web_keywords"),"'",""),"，",","),"""","")
		rsfor("Web_keywords_en")=replace(replace(replace(Request("Web_keywords_en"),"'",""),"，",","),"""","")
		rsfor("Web_keywords_fa")=replace(replace(replace(Request("Web_keywords_fa"),"'",""),"，",","),"""","")
		rsfor("Web_title")=Request("Web_title")
		rsfor("Web_title_en")=Request("Web_title_en")
		rsfor("Web_title_fa")=Request("Web_title_fa")
		
	rsfor.update
	call rsclose(rsfor)
	Response.Write("<script>alert('保存成功');window.location='infor.asp'</script>")
	Response.End()	
End if

Set rsfor=Server.CreateObject("ADODB.RecordSet")
strsql="select * from [Infor]"
rsfor.Open strsql,conn,1,1
if rsfor.eof then
	twScript("请于管理员联系,返回上一页")
End if
%>
<form name="form1" method="post" action="?modify=modify">
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="table_border">
    <tr bgcolor="#DBE6FF">
      <td colspan="2" class="padding_1 table_bg table_bg_size" align="center">网站配置</td>
    </tr>
<%IF banben_China=True then%>
    <tr bgcolor="#DBE6FF">
      <td colspan="2"><table width="100%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
        <tr class="table_bg_n" style="display:none">
          <td width="13%" height="30" align="center">公司名称</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Name" type="text" id="Web_Name" size="130" value="<%=rsfor("Web_Name")%>"></td>
        </tr>
<%
end if
IF banben_En=True then
%>
        <tr class="table_bg_n">
          <td width="13%" height="30" align="center">公司名称(En)</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Name_en" type="text" id="Web_Name_en" size="130" value="<%=rsfor("Web_Name_en")%>"></td>
        </tr>	
<%
end if
IF banben_Fa=True then
%>
        <tr class="table_bg_n">
          <td width="13%" height="30" align="center">公司名称(Fa)</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Name_fa" type="text" id="Web_Name_fa" size="130" value="<%=rsfor("Web_Name_fa")%>"></td>
        </tr>
<%
End IF
IF banben_China=True then
%>
        <tr class="table_bg_n">
          <td width="13%" height="30" align="center">网站标题</td>
          <td colspan="2" class="padding-left-10"><input name="Web_title" type="text" size="130" value="<%=rsfor("Web_title")%>">&nbsp;&nbsp;&nbsp;&nbsp;70个字符以内</td>
        </tr>
        <tr class="table_bg_n">
          <td height="30" align="center">客户预约数</td>
          <td colspan="2" class="padding-left-10"><input name="zongshu" type="text" size="13" value="<%=rsfor("zongshu")%>"> 位</td>
        </tr>
<%
end if
IF banben_En=True then
%>
		<tr class="table_bg_n">
          <td width="13%" height="30" align="center">网站标题(En)</td>
          <td colspan="2" class="padding-left-10"><input name="Web_title_en" type="text" size="130" value="<%=rsfor("Web_title_en")%>"></td>
        </tr>
<%
end if
IF banben_Fa=True then
%>
		<tr class="table_bg_n">
          <td width="13%" height="30" align="center">网站标题(Fa)</td>
          <td colspan="2" class="padding-left-10"><input name="Web_title_fa" type="text" size="130" value="<%=rsfor("Web_title_fa")%>"></td>
        </tr>
<%
End IF
IF Web_Add_B=True Then
IF banben_China=True then
%>
        <tr class="table_bg_n">
          <td height="30" align="center">公司地址</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Add" type="text" id="Web_Add" size="130" value="<%=rsfor("Web_Add")%>"></td>
        </tr>
<%
End IF
IF banben_En=True then
%>
        <tr class="table_bg_n">
          <td height="30" align="center">公司地址(En)</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Add_en" type="text" id="Web_Add_en" size="130" value="<%=rsfor("Web_Add_en")%>"></td>
        </tr>
<%
End IF
IF banben_Fa=True then
%>
        <tr class="table_bg_n">
          <td height="30" align="center">公司地址(Fa)</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Add_fa" type="text" id="Web_Add_fa" size="130" value="<%=rsfor("Web_Add_fa")%>"></td>
        </tr>
<%
End IF
End IF
IF Web_Lxr_B=True Then
IF banben_China=True Then
%>
        <tr class="table_bg_n">
          <td height="30" align="center">联系人</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Lxr" type="text" id="Web_Lxr" size="50" value="<%=rsfor("Web_Lxr")%>"></td>
        </tr>
<%
End IF
IF banben_En=True then
%>
        <tr class="table_bg_n">
          <td height="30" align="center">联系人(En)</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Lxr_en" type="text" id="Web_Lxr_en" size="50" value="<%=rsfor("Web_Lxr_en")%>"></td>
        </tr>	
<%
End IF
IF banben_Fa=True then
%>
        <tr class="table_bg_n">
          <td height="30" align="center">联系人(Fa)</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Lxr_fa" type="text" id="Web_Lxr_fa" size="50" value="<%=rsfor("Web_Lxr_fa")%>"></td>
        </tr>		
<%
End IF
End IF
IF Web_Phone_B=True Then
%>
        <tr class="table_bg_n">
          <td height="30" align="center">公司电话</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Phone" type="text" id="Web_Phone" size="50" value="<%=rsfor("Web_Phone")%>"></td>
        </tr>
<%
End IF
IF Web_Fax_B=True Then
%>
        <tr class="table_bg_n">
          <td height="30" align="center">公司传真</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Fax" type="text" id="Web_Fax" size="50" value="<%=rsfor("Web_Fax")%>"></td>
        </tr>
<%
End IF
IF Web_LeaguePhone_B=True Then
%>
        <tr class="table_bg_n">
          <td height="30" align="center">招商热线</td>
          <td colspan="2" class="padding-left-10"><input name="Web_LeaguePhone" type="text" id="Web_LeaguePhone" size="50" value="<%=rsfor("Web_LeaguePhone")%>"></td>
        </tr>
<%
End IF
IF Web_Serverphone_B=True Then
%>
        <tr class="table_bg_n">
          <td height="30" align="center">服务热线</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Serverphone" type="text" id="Web_Serverphone" size="50" value="<%=rsfor("Web_Serverphone")%>"></td>
        </tr>
<%
End IF
IF Web_QQ_B=True Then
%>
        <tr class="table_bg_n">
          <td height="30" align="center">Q Q</td>
          <td colspan="2" class="padding-left-10"><input name="Web_QQ" type="text" size="50" value="<%=rsfor("Web_QQ")%>">&nbsp;&nbsp;多个QQ请用“,”隔开</td>
        </tr>
<%
End IF
IF Web_MSN_B=True Then
%>
        <tr class="table_bg_n">
          <td height="35" align="center">MSN</td>
          <td colspan="2" class="padding-left-10"><input name="Web_MSN" type="text" size="50" value="<%=rsfor("Web_MSN")%>"></td>
        </tr>
<%
End IF
IF Web_Skype_B=True Then
%>
        <tr class="table_bg_n">
          <td height="35" align="center">Skype</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Skype" type="text" size="50" value="<%=rsfor("Web_Skype")%>"></td>
        </tr>
<%
End IF	
IF Web_http_B=True Then
%>
        <tr class="table_bg_n">
          <td height="30" align="center">公司网址</td>
          <td colspan="2" class="padding-left-10"><input name="Web_http" type="text" id="Web_http" size="50" value="<%=rsfor("Web_http")%>"></td>
        </tr>
<%
End IF
IF Web_Mail_B=True Then
%>
        <tr class="table_bg_n">
          <td height="30" align="center">E-mail</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Mail" type="text" id="Web_Mail" size="50" value="<%=rsfor("Web_Mail")%>"></td>
        </tr>
<%
End IF
IF Web_Mobilephone_B=True Then
%>
        <tr class="table_bg_n">
          <td height="30" align="center">手&nbsp;&nbsp;&nbsp;&nbsp;机</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Mobilephone" type="text" id="Web_Mobilephone" size="50" value="<%=rsfor("Web_Mobilephone")%>"></td>
        </tr>
<%
End IF
IF Web_Zipcode_B=True Then
%>
<%
End IF
IF Web_Wenti_B=True Then
%>
		<tr class="table_bg_n">
          <td height="30" align="center">验证问题</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Wenti" type="text" id="Web_Wenti" size="50" value="<%=rsfor("Web_Wenti")%>"></td>
        </tr>
<%
End IF
IF Web_Daan_B=True Then
%>
		<tr class="table_bg_n">
          <td height="30" align="center">问题答案</td>
          <td colspan="2" class="padding-left-10"><input name="Web_Daan" type="text" id="Web_Daan" size="50" value="<%=rsfor("Web_Daan")%>"></td>
        </tr>	
<%
End IF
IF banben_China=True then
%>
		<tr class="table_bg_n">
          <td height="70" align="center">网站META网页描述<br>(description)</td>
          <td colspan="2" class="padding-left-10"><textarea name="Web_description" style="width:810px; height:50px;"><%=rsfor("Web_description")%></textarea> &nbsp;&nbsp;&nbsp;&nbsp;70个字符以内</td>
        </tr>
<%
End IF
IF banben_En=True then
%>
		<tr class="table_bg_n">
          <td height="70" align="center">网站META网页描述<br>(description)(En)</td>
          <td colspan="2" class="padding-left-10"><textarea name="Web_description_en" style="width:810px; height:50px;"><%=rsfor("Web_description_en")%></textarea></td>
        </tr>	
<%
End IF
IF banben_Fa=True then
%>
		<tr class="table_bg_n">
          <td height="70" align="center">网站META网页描述<br>(description)(Fa)</td>
          <td colspan="2" class="padding-left-10"><textarea name="Web_description_fa" style="width:810px; height:50px;"><%=rsfor("Web_description_fa")%></textarea></td>
        </tr>
<%
End IF
IF banben_China=True then
%>
		<tr class="table_bg_n">
          <td height="70" align="center">网站META关键词<br>(keywords)<br>(多个关键词请用,号分隔)</td>
          <td colspan="2" class="padding-left-10"><textarea name="Web_keywords" style="width:810px; height:50px;"><%=rsfor("Web_keywords")%></textarea>
          &nbsp;&nbsp;&nbsp;&nbsp;在70个字符以内</td>
        </tr>
<%
End IF
IF banben_En=True then
%>
		<tr class="table_bg_n">
          <td height="70" align="center">网站META关键词<br> (keywords)(En)<br>(多个关键词请用,号分隔)</td>
          <td colspan="2" class="padding-left-10"><textarea name="Web_keywords_en" style="width:810px; height:50px;"><%=rsfor("Web_keywords_en")%></textarea></td>
        </tr>	
<%
End IF
IF banben_Fa=True then
%>
		<tr class="table_bg_n">
          <td height="70" align="center">网站META关键词<br>(keywords)(Fa)<br>(多个关键词请用,号分隔)</td>
          <td colspan="2" class="padding-left-10"><textarea name="Web_keywords_fa" style="width:810px; height:50px;"><%=rsfor("Web_keywords_fa")%></textarea></td>
        </tr>
<%end if%>
        <tr class="table_bg_n">
          <td height="30" colspan="3" align="center"><input type="submit" style="padding-top:3px; cursor:pointer" name="Submit" value="保存修改"></td>
          </tr>
      </table></td>
    </tr>
  </table>
</form>
</body>
</html>